namespace ES.Models
{
    using System.ComponentModel.DataAnnotations;

    public class UserCardInfo
    {
        [Required(ErrorMessage = "*")]
        public string BillAdress { get; set; }
        [Required(ErrorMessage = "*")]
        public string DeliveryAdress { get; set; }
        [Required(ErrorMessage = "*"), StringLength(16, MinimumLength = 16, ErrorMessage = "*")]
        public string CardNumber { get; set; }
        [Required(ErrorMessage = "*"), StringLength(3, MinimumLength = 3, ErrorMessage = "*")]
        public string SecurityNumber { get; set; }
        [Required(ErrorMessage = "*")]
        public string CardHasName { get; set; }
        [Required(ErrorMessage = "*")]
        public int ExpYear { get; set; }
        [Required(ErrorMessage = "*")]
        public int ExpMonth { get; set; }
        public Product Product { get; set; }
        public int Id { get; set; }
    }
}